package b.s.a.a;

import android.content.res.ColorStateList;
import android.content.res.Resources;
import android.content.res.Resources.Theme;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.ColorFilter;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.Paint.Cap;
import android.graphics.Paint.Join;
import android.graphics.Paint.Style;
import android.graphics.Path;
import android.graphics.Path.FillType;
import android.graphics.PathMeasure;
import android.graphics.PorterDuff.Mode;
import android.graphics.PorterDuffColorFilter;
import android.graphics.Rect;
import android.graphics.Shader;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.Drawable.ConstantState;
import android.graphics.drawable.VectorDrawable;
import android.os.Build.VERSION;
import android.util.AttributeSet;
import com.pgl.sys.ces.out.ISdkLite;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Objects;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;

/* compiled from: VectorDrawableCompat */
public class f extends e {
    public static final Mode j = Mode.SRC_IN;
    public h b;
    public PorterDuffColorFilter c;
    public ColorFilter d;
    public boolean e;
    public boolean f;
    public final float[] g;
    public final Matrix h;
    public final Rect i;

    /* compiled from: VectorDrawableCompat */
    public static abstract class e {
        public boolean a() {
            return false;
        }

        public boolean b(int[] iArr) {
            return false;
        }

        public e(a aVar) {
        }
    }

    /* compiled from: VectorDrawableCompat */
    public static class g {
        public static final Matrix q = new Matrix();
        public final Path a;
        public final Path b;
        public final Matrix c;
        public Paint d;
        public Paint e;
        public PathMeasure f;
        public int g;
        public final d h;
        public float i;
        public float j;
        public float k;
        public float l;
        public int m;
        public String n;
        public Boolean o;
        public final b.f.a<String, Object> p;

        public g() {
            this.c = new Matrix();
            this.i = 0.0f;
            this.j = 0.0f;
            this.k = 0.0f;
            this.l = 0.0f;
            this.m = ISdkLite.REGION_UNSET;
            this.n = null;
            this.o = null;
            this.p = new b.f.a();
            this.h = new d();
            this.a = new Path();
            this.b = new Path();
        }

        public final void a(d dVar, Matrix matrix, Canvas canvas, int i, int i2, ColorFilter colorFilter) {
            g gVar;
            g gVar2 = this;
            d dVar2 = dVar;
            Canvas canvas2 = canvas;
            ColorFilter colorFilter2 = colorFilter;
            dVar2.a.set(matrix);
            dVar2.a.preConcat(dVar2.j);
            canvas.save();
            int i3 = 0;
            int i4 = 0;
            while (i4 < dVar2.b.size()) {
                e eVar = (e) dVar2.b.get(i4);
                if (eVar instanceof d) {
                    a((d) eVar, dVar2.a, canvas, i, i2, colorFilter);
                } else if (eVar instanceof f) {
                    f fVar = (f) eVar;
                    float f = ((float) i) / gVar2.k;
                    float f2 = ((float) i2) / gVar2.l;
                    float min = Math.min(f, f2);
                    Matrix matrix2 = dVar2.a;
                    gVar2.c.set(matrix2);
                    gVar2.c.postScale(f, f2);
                    float[] fArr = new float[]{0.0f, 1.0f, 1.0f, 0.0f};
                    matrix2.mapVectors(fArr);
                    float f3 = min;
                    float f4 = (fArr[i3] * fArr[3]) - (fArr[1] * fArr[2]);
                    f = Math.max((float) Math.hypot((double) fArr[i3], (double) fArr[1]), (float) Math.hypot((double) fArr[2], (double) fArr[3]));
                    min = f > 0.0f ? Math.abs(f4) / f : 0.0f;
                    if (min == 0.0f) {
                        gVar = this;
                    } else {
                        gVar = this;
                        Path path = gVar.a;
                        Objects.requireNonNull(fVar);
                        path.reset();
                        b.i.d.c[] cVarArr = fVar.a;
                        if (cVarArr != null) {
                            b.i.d.c.b(cVarArr, path);
                        }
                        path = gVar.a;
                        gVar.b.reset();
                        if (fVar.c()) {
                            gVar.b.setFillType(fVar.c == 0 ? FillType.WINDING : FillType.EVEN_ODD);
                            gVar.b.addPath(path, gVar.c);
                            canvas2.clipPath(gVar.b);
                        } else {
                            float f5;
                            Shader shader;
                            int i5;
                            c cVar = (c) fVar;
                            f4 = cVar.k;
                            if (!(f4 == 0.0f && cVar.l == 1.0f)) {
                                float f6 = cVar.m;
                                f4 = (f4 + f6) % 1.0f;
                                f5 = (cVar.l + f6) % 1.0f;
                                if (gVar.f == null) {
                                    gVar.f = new PathMeasure();
                                }
                                gVar.f.setPath(gVar.a, i3);
                                float length = gVar.f.getLength();
                                f4 *= length;
                                f5 *= length;
                                path.reset();
                                if (f4 > f5) {
                                    gVar.f.getSegment(f4, length, path, true);
                                    gVar.f.getSegment(0.0f, f5, path, true);
                                } else {
                                    gVar.f.getSegment(f4, f5, path, true);
                                }
                                path.rLineTo(0.0f, 0.0f);
                            }
                            gVar.b.addPath(path, gVar.c);
                            b.i.c.b.a aVar = cVar.h;
                            Object obj = (aVar.b() || aVar.c != 0) ? 1 : null;
                            if (obj != null) {
                                Paint paint;
                                aVar = cVar.h;
                                if (gVar.e == null) {
                                    paint = new Paint(1);
                                    gVar.e = paint;
                                    paint.setStyle(Style.FILL);
                                }
                                paint = gVar.e;
                                if (aVar.b()) {
                                    shader = aVar.a;
                                    shader.setLocalMatrix(gVar.c);
                                    paint.setShader(shader);
                                    paint.setAlpha(Math.round(cVar.j * 255.0f));
                                } else {
                                    paint.setShader(null);
                                    paint.setAlpha(ISdkLite.REGION_UNSET);
                                    i5 = aVar.c;
                                    f5 = cVar.j;
                                    Mode mode = f.j;
                                    paint.setColor((i5 & 16777215) | (((int) (((float) Color.alpha(i5)) * f5)) << 24));
                                }
                                paint.setColorFilter(colorFilter2);
                                gVar.b.setFillType(cVar.c == 0 ? FillType.WINDING : FillType.EVEN_ODD);
                                canvas2.drawPath(gVar.b, paint);
                            }
                            aVar = cVar.f;
                            obj = (aVar.b() || aVar.c != 0) ? 1 : null;
                            if (obj != null) {
                                Paint paint2;
                                aVar = cVar.f;
                                if (gVar.d == null) {
                                    paint2 = new Paint(1);
                                    gVar.d = paint2;
                                    paint2.setStyle(Style.STROKE);
                                }
                                paint2 = gVar.d;
                                Join join = cVar.o;
                                if (join != null) {
                                    paint2.setStrokeJoin(join);
                                }
                                Cap cap = cVar.n;
                                if (cap != null) {
                                    paint2.setStrokeCap(cap);
                                }
                                paint2.setStrokeMiter(cVar.p);
                                if (aVar.b()) {
                                    shader = aVar.a;
                                    shader.setLocalMatrix(gVar.c);
                                    paint2.setShader(shader);
                                    paint2.setAlpha(Math.round(cVar.i * 255.0f));
                                } else {
                                    paint2.setShader(null);
                                    paint2.setAlpha(ISdkLite.REGION_UNSET);
                                    i5 = aVar.c;
                                    float f7 = cVar.i;
                                    Mode mode2 = f.j;
                                    paint2.setColor((i5 & 16777215) | (((int) (((float) Color.alpha(i5)) * f7)) << 24));
                                }
                                paint2.setColorFilter(colorFilter2);
                                paint2.setStrokeWidth(cVar.g * (min * f3));
                                canvas2.drawPath(gVar.b, paint2);
                            }
                        }
                    }
                    i4++;
                    gVar2 = gVar;
                    i3 = 0;
                }
                int i6 = i;
                int i7 = i2;
                gVar = gVar2;
                i4++;
                gVar2 = gVar;
                i3 = 0;
            }
            gVar = gVar2;
            canvas.restore();
        }

        public float getAlpha() {
            return ((float) getRootAlpha()) / 255.0f;
        }

        public int getRootAlpha() {
            return this.m;
        }

        public void setAlpha(float f) {
            setRootAlpha((int) (f * 255.0f));
        }

        public void setRootAlpha(int i) {
            this.m = i;
        }

        public g(g gVar) {
            this.c = new Matrix();
            this.i = 0.0f;
            this.j = 0.0f;
            this.k = 0.0f;
            this.l = 0.0f;
            this.m = ISdkLite.REGION_UNSET;
            this.n = null;
            this.o = null;
            b.f.a aVar = new b.f.a();
            this.p = aVar;
            this.h = new d(gVar.h, aVar);
            this.a = new Path(gVar.a);
            this.b = new Path(gVar.b);
            this.i = gVar.i;
            this.j = gVar.j;
            this.k = gVar.k;
            this.l = gVar.l;
            this.g = gVar.g;
            this.m = gVar.m;
            this.n = gVar.n;
            String str = gVar.n;
            if (str != null) {
                aVar.put(str, this);
            }
            this.o = gVar.o;
        }
    }

    /* compiled from: VectorDrawableCompat */
    public static class h extends ConstantState {
        public int a;
        public g b;
        public ColorStateList c;
        public Mode d;
        public boolean e;
        public Bitmap f;
        public ColorStateList g;
        public Mode h;
        public int i;
        public boolean j;
        public boolean k;
        public Paint l;

        public h(h hVar) {
            this.c = null;
            this.d = f.j;
            if (hVar != null) {
                this.a = hVar.a;
                g gVar = new g(hVar.b);
                this.b = gVar;
                if (hVar.b.e != null) {
                    gVar.e = new Paint(hVar.b.e);
                }
                if (hVar.b.d != null) {
                    this.b.d = new Paint(hVar.b.d);
                }
                this.c = hVar.c;
                this.d = hVar.d;
                this.e = hVar.e;
            }
        }

        public boolean a() {
            g gVar = this.b;
            if (gVar.o == null) {
                gVar.o = Boolean.valueOf(gVar.h.a());
            }
            return gVar.o.booleanValue();
        }

        public void b(int i, int i2) {
            this.f.eraseColor(0);
            Canvas canvas = new Canvas(this.f);
            g gVar = this.b;
            gVar.a(gVar.h, g.q, canvas, i, i2, null);
        }

        public int getChangingConfigurations() {
            return this.a;
        }

        public Drawable newDrawable() {
            return new f(this);
        }

        public Drawable newDrawable(Resources resources) {
            return new f(this);
        }

        public h() {
            this.c = null;
            this.d = f.j;
            this.b = new g();
        }
    }

    /* compiled from: VectorDrawableCompat */
    public static class i extends ConstantState {
        public final ConstantState a;

        public i(ConstantState constantState) {
            this.a = constantState;
        }

        public boolean canApplyTheme() {
            return this.a.canApplyTheme();
        }

        public int getChangingConfigurations() {
            return this.a.getChangingConfigurations();
        }

        public Drawable newDrawable() {
            f fVar = new f();
            fVar.a = (VectorDrawable) this.a.newDrawable();
            return fVar;
        }

        public Drawable newDrawable(Resources resources) {
            f fVar = new f();
            fVar.a = (VectorDrawable) this.a.newDrawable(resources);
            return fVar;
        }

        public Drawable newDrawable(Resources resources, Theme theme) {
            f fVar = new f();
            fVar.a = (VectorDrawable) this.a.newDrawable(resources, theme);
            return fVar;
        }
    }

    /* compiled from: VectorDrawableCompat */
    public static class d extends e {
        public final Matrix a;
        public final ArrayList<e> b;
        public float c;
        public float d;
        public float e;
        public float f;
        public float g;
        public float h;
        public float i;
        public final Matrix j;
        public int k;
        public int[] l;
        public String m;

        public d(d dVar, b.f.a<String, Object> aVar) {
            super(null);
            this.a = new Matrix();
            this.b = new ArrayList();
            this.c = 0.0f;
            this.d = 0.0f;
            this.e = 0.0f;
            this.f = 1.0f;
            this.g = 1.0f;
            this.h = 0.0f;
            this.i = 0.0f;
            Matrix matrix = new Matrix();
            this.j = matrix;
            this.m = null;
            this.c = dVar.c;
            this.d = dVar.d;
            this.e = dVar.e;
            this.f = dVar.f;
            this.g = dVar.g;
            this.h = dVar.h;
            this.i = dVar.i;
            this.l = dVar.l;
            String str = dVar.m;
            this.m = str;
            this.k = dVar.k;
            if (str != null) {
                aVar.put(str, this);
            }
            matrix.set(dVar.j);
            ArrayList arrayList = dVar.b;
            for (int i = 0; i < arrayList.size(); i++) {
                Object obj = arrayList.get(i);
                if (obj instanceof d) {
                    this.b.add(new d((d) obj, aVar));
                } else {
                    Object cVar;
                    if (obj instanceof c) {
                        cVar = new c((c) obj);
                    } else if (obj instanceof b) {
                        cVar = new b((b) obj);
                    } else {
                        throw new IllegalStateException("Unknown object in the tree!");
                    }
                    this.b.add(cVar);
                    String str2 = cVar.b;
                    if (str2 != null) {
                        aVar.put(str2, cVar);
                    }
                }
            }
        }

        public boolean a() {
            for (int i = 0; i < this.b.size(); i++) {
                if (((e) this.b.get(i)).a()) {
                    return true;
                }
            }
            return false;
        }

        public boolean b(int[] iArr) {
            boolean z = false;
            for (int i = 0; i < this.b.size(); i++) {
                z |= ((e) this.b.get(i)).b(iArr);
            }
            return z;
        }

        public final void c() {
            this.j.reset();
            this.j.postTranslate(-this.d, -this.e);
            this.j.postScale(this.f, this.g);
            this.j.postRotate(this.c, 0.0f, 0.0f);
            this.j.postTranslate(this.h + this.d, this.i + this.e);
        }

        public String getGroupName() {
            return this.m;
        }

        public Matrix getLocalMatrix() {
            return this.j;
        }

        public float getPivotX() {
            return this.d;
        }

        public float getPivotY() {
            return this.e;
        }

        public float getRotation() {
            return this.c;
        }

        public float getScaleX() {
            return this.f;
        }

        public float getScaleY() {
            return this.g;
        }

        public float getTranslateX() {
            return this.h;
        }

        public float getTranslateY() {
            return this.i;
        }

        public void setPivotX(float f) {
            if (f != this.d) {
                this.d = f;
                c();
            }
        }

        public void setPivotY(float f) {
            if (f != this.e) {
                this.e = f;
                c();
            }
        }

        public void setRotation(float f) {
            if (f != this.c) {
                this.c = f;
                c();
            }
        }

        public void setScaleX(float f) {
            if (f != this.f) {
                this.f = f;
                c();
            }
        }

        public void setScaleY(float f) {
            if (f != this.g) {
                this.g = f;
                c();
            }
        }

        public void setTranslateX(float f) {
            if (f != this.h) {
                this.h = f;
                c();
            }
        }

        public void setTranslateY(float f) {
            if (f != this.i) {
                this.i = f;
                c();
            }
        }

        public d() {
            super(null);
            this.a = new Matrix();
            this.b = new ArrayList();
            this.c = 0.0f;
            this.d = 0.0f;
            this.e = 0.0f;
            this.f = 1.0f;
            this.g = 1.0f;
            this.h = 0.0f;
            this.i = 0.0f;
            this.j = new Matrix();
            this.m = null;
        }
    }

    /* compiled from: VectorDrawableCompat */
    public static abstract class f extends e {
        public b.i.d.c[] a = null;
        public String b;
        public int c = 0;
        public int d;

        public f() {
            super(null);
        }

        public boolean c() {
            return false;
        }

        public b.i.d.c[] getPathData() {
            return this.a;
        }

        public String getPathName() {
            return this.b;
        }

        public void setPathData(b.i.d.c[] cVarArr) {
            if (b.i.b.f.I(this.a, cVarArr)) {
                b.i.d.c[] cVarArr2 = this.a;
                for (int i = 0; i < cVarArr.length; i++) {
                    cVarArr2[i].a = cVarArr[i].a;
                    for (int i2 = 0; i2 < cVarArr[i].b.length; i2++) {
                        cVarArr2[i].b[i2] = cVarArr[i].b[i2];
                    }
                }
                return;
            }
            this.a = b.i.b.f.o0(cVarArr);
        }

        public f(f fVar) {
            super(null);
            this.b = fVar.b;
            this.d = fVar.d;
            this.a = b.i.b.f.o0(fVar.a);
        }
    }

    /* compiled from: VectorDrawableCompat */
    public static class b extends f {
        public boolean c() {
            return true;
        }

        public b(b bVar) {
            super(bVar);
        }
    }

    /* compiled from: VectorDrawableCompat */
    public static class c extends f {
        public int[] e;
        public b.i.c.b.a f;
        public float g = 0.0f;
        public b.i.c.b.a h;
        public float i = 1.0f;
        public float j = 1.0f;
        public float k = 0.0f;
        public float l = 1.0f;
        public float m = 0.0f;
        public Cap n = Cap.BUTT;
        public Join o = Join.MITER;
        public float p = 4.0f;

        public boolean a() {
            return this.h.c() || this.f.c();
        }

        public boolean b(int[] iArr) {
            return this.f.d(iArr) | this.h.d(iArr);
        }

        public float getFillAlpha() {
            return this.j;
        }

        public int getFillColor() {
            return this.h.c;
        }

        public float getStrokeAlpha() {
            return this.i;
        }

        public int getStrokeColor() {
            return this.f.c;
        }

        public float getStrokeWidth() {
            return this.g;
        }

        public float getTrimPathEnd() {
            return this.l;
        }

        public float getTrimPathOffset() {
            return this.m;
        }

        public float getTrimPathStart() {
            return this.k;
        }

        public void setFillAlpha(float f) {
            this.j = f;
        }

        public void setFillColor(int i) {
            this.h.c = i;
        }

        public void setStrokeAlpha(float f) {
            this.i = f;
        }

        public void setStrokeColor(int i) {
            this.f.c = i;
        }

        public void setStrokeWidth(float f) {
            this.g = f;
        }

        public void setTrimPathEnd(float f) {
            this.l = f;
        }

        public void setTrimPathOffset(float f) {
            this.m = f;
        }

        public void setTrimPathStart(float f) {
            this.k = f;
        }

        public c(c cVar) {
            super(cVar);
            this.e = cVar.e;
            this.f = cVar.f;
            this.g = cVar.g;
            this.i = cVar.i;
            this.h = cVar.h;
            this.c = cVar.c;
            this.j = cVar.j;
            this.k = cVar.k;
            this.l = cVar.l;
            this.m = cVar.m;
            this.n = cVar.n;
            this.o = cVar.o;
            this.p = cVar.p;
        }
    }

    public f() {
        this.f = true;
        this.g = new float[9];
        this.h = new Matrix();
        this.i = new Rect();
        this.b = new h();
    }

    public static f a(Resources resources, XmlPullParser xmlPullParser, AttributeSet attributeSet, Theme theme) throws XmlPullParserException, IOException {
        f fVar = new f();
        fVar.inflate(resources, xmlPullParser, attributeSet, theme);
        return fVar;
    }

    public PorterDuffColorFilter b(ColorStateList colorStateList, Mode mode) {
        return (colorStateList == null || mode == null) ? null : new PorterDuffColorFilter(colorStateList.getColorForState(getState(), 0), mode);
    }

    public boolean canApplyTheme() {
        Drawable drawable = this.a;
        if (drawable != null) {
            drawable.canApplyTheme();
        }
        return false;
    }

    /* JADX WARNING: Missing block: B:35:0x00d3, code skipped:
            if (r7 == null) goto L_0x00d5;
     */
    public void draw(android.graphics.Canvas r11) {
        /*
        r10 = this;
        r0 = r10.a;
        if (r0 == 0) goto L_0x0008;
    L_0x0004:
        r0.draw(r11);
        return;
    L_0x0008:
        r0 = r10.i;
        r10.copyBounds(r0);
        r0 = r10.i;
        r0 = r0.width();
        if (r0 <= 0) goto L_0x016b;
    L_0x0015:
        r0 = r10.i;
        r0 = r0.height();
        if (r0 > 0) goto L_0x001f;
    L_0x001d:
        goto L_0x016b;
    L_0x001f:
        r0 = r10.d;
        if (r0 != 0) goto L_0x0025;
    L_0x0023:
        r0 = r10.c;
    L_0x0025:
        r1 = r10.h;
        r11.getMatrix(r1);
        r1 = r10.h;
        r2 = r10.g;
        r1.getValues(r2);
        r1 = r10.g;
        r2 = 0;
        r1 = r1[r2];
        r1 = java.lang.Math.abs(r1);
        r3 = r10.g;
        r4 = 4;
        r3 = r3[r4];
        r3 = java.lang.Math.abs(r3);
        r4 = r10.g;
        r5 = 1;
        r4 = r4[r5];
        r4 = java.lang.Math.abs(r4);
        r6 = r10.g;
        r7 = 3;
        r6 = r6[r7];
        r6 = java.lang.Math.abs(r6);
        r7 = 1065353216; // 0x3f800000 float:1.0 double:5.263544247E-315;
        r8 = 0;
        r4 = (r4 > r8 ? 1 : (r4 == r8 ? 0 : -1));
        if (r4 != 0) goto L_0x0060;
    L_0x005c:
        r4 = (r6 > r8 ? 1 : (r6 == r8 ? 0 : -1));
        if (r4 == 0) goto L_0x0064;
    L_0x0060:
        r1 = 1065353216; // 0x3f800000 float:1.0 double:5.263544247E-315;
        r3 = 1065353216; // 0x3f800000 float:1.0 double:5.263544247E-315;
    L_0x0064:
        r4 = r10.i;
        r4 = r4.width();
        r4 = (float) r4;
        r4 = r4 * r1;
        r1 = (int) r4;
        r4 = r10.i;
        r4 = r4.height();
        r4 = (float) r4;
        r4 = r4 * r3;
        r3 = (int) r4;
        r4 = 2048; // 0x800 float:2.87E-42 double:1.0118E-320;
        r1 = java.lang.Math.min(r4, r1);
        r3 = java.lang.Math.min(r4, r3);
        if (r1 <= 0) goto L_0x016b;
    L_0x0084:
        if (r3 > 0) goto L_0x0088;
    L_0x0086:
        goto L_0x016b;
    L_0x0088:
        r4 = r11.save();
        r6 = r10.i;
        r9 = r6.left;
        r9 = (float) r9;
        r6 = r6.top;
        r6 = (float) r6;
        r11.translate(r9, r6);
        r6 = r10.isAutoMirrored();
        if (r6 == 0) goto L_0x00a5;
    L_0x009d:
        r6 = b.i.b.f.u0(r10);
        if (r6 != r5) goto L_0x00a5;
    L_0x00a3:
        r6 = 1;
        goto L_0x00a6;
    L_0x00a5:
        r6 = 0;
    L_0x00a6:
        if (r6 == 0) goto L_0x00b7;
    L_0x00a8:
        r6 = r10.i;
        r6 = r6.width();
        r6 = (float) r6;
        r11.translate(r6, r8);
        r6 = -1082130432; // 0xffffffffbf800000 float:-1.0 double:NaN;
        r11.scale(r6, r7);
    L_0x00b7:
        r6 = r10.i;
        r6.offsetTo(r2, r2);
        r6 = r10.b;
        r7 = r6.f;
        if (r7 == 0) goto L_0x00d5;
    L_0x00c2:
        r7 = r7.getWidth();
        if (r1 != r7) goto L_0x00d2;
    L_0x00c8:
        r7 = r6.f;
        r7 = r7.getHeight();
        if (r3 != r7) goto L_0x00d2;
    L_0x00d0:
        r7 = 1;
        goto L_0x00d3;
    L_0x00d2:
        r7 = 0;
    L_0x00d3:
        if (r7 != 0) goto L_0x00df;
    L_0x00d5:
        r7 = android.graphics.Bitmap.Config.ARGB_8888;
        r7 = android.graphics.Bitmap.createBitmap(r1, r3, r7);
        r6.f = r7;
        r6.k = r5;
    L_0x00df:
        r6 = r10.f;
        if (r6 != 0) goto L_0x00e9;
    L_0x00e3:
        r6 = r10.b;
        r6.b(r1, r3);
        goto L_0x012d;
    L_0x00e9:
        r6 = r10.b;
        r7 = r6.k;
        if (r7 != 0) goto L_0x010d;
    L_0x00ef:
        r7 = r6.g;
        r8 = r6.c;
        if (r7 != r8) goto L_0x010d;
    L_0x00f5:
        r7 = r6.h;
        r8 = r6.d;
        if (r7 != r8) goto L_0x010d;
    L_0x00fb:
        r7 = r6.j;
        r8 = r6.e;
        if (r7 != r8) goto L_0x010d;
    L_0x0101:
        r7 = r6.i;
        r6 = r6.b;
        r6 = r6.getRootAlpha();
        if (r7 != r6) goto L_0x010d;
    L_0x010b:
        r6 = 1;
        goto L_0x010e;
    L_0x010d:
        r6 = 0;
    L_0x010e:
        if (r6 != 0) goto L_0x012d;
    L_0x0110:
        r6 = r10.b;
        r6.b(r1, r3);
        r1 = r10.b;
        r3 = r1.c;
        r1.g = r3;
        r3 = r1.d;
        r1.h = r3;
        r3 = r1.b;
        r3 = r3.getRootAlpha();
        r1.i = r3;
        r3 = r1.e;
        r1.j = r3;
        r1.k = r2;
    L_0x012d:
        r1 = r10.b;
        r3 = r10.i;
        r6 = r1.b;
        r6 = r6.getRootAlpha();
        r7 = 255; // 0xff float:3.57E-43 double:1.26E-321;
        if (r6 >= r7) goto L_0x013c;
    L_0x013b:
        r2 = 1;
    L_0x013c:
        r6 = 0;
        if (r2 != 0) goto L_0x0143;
    L_0x013f:
        if (r0 != 0) goto L_0x0143;
    L_0x0141:
        r0 = r6;
        goto L_0x0163;
    L_0x0143:
        r2 = r1.l;
        if (r2 != 0) goto L_0x0151;
    L_0x0147:
        r2 = new android.graphics.Paint;
        r2.<init>();
        r1.l = r2;
        r2.setFilterBitmap(r5);
    L_0x0151:
        r2 = r1.l;
        r5 = r1.b;
        r5 = r5.getRootAlpha();
        r2.setAlpha(r5);
        r2 = r1.l;
        r2.setColorFilter(r0);
        r0 = r1.l;
    L_0x0163:
        r1 = r1.f;
        r11.drawBitmap(r1, r6, r3, r0);
        r11.restoreToCount(r4);
    L_0x016b:
        return;
        */
        throw new UnsupportedOperationException("Method not decompiled: b.s.a.a.f.draw(android.graphics.Canvas):void");
    }

    public int getAlpha() {
        Drawable drawable = this.a;
        if (drawable != null) {
            return drawable.getAlpha();
        }
        return this.b.b.getRootAlpha();
    }

    public int getChangingConfigurations() {
        Drawable drawable = this.a;
        if (drawable != null) {
            return drawable.getChangingConfigurations();
        }
        return super.getChangingConfigurations() | this.b.getChangingConfigurations();
    }

    public ColorFilter getColorFilter() {
        Drawable drawable = this.a;
        if (drawable != null) {
            return drawable.getColorFilter();
        }
        return this.d;
    }

    public ConstantState getConstantState() {
        if (this.a != null && VERSION.SDK_INT >= 24) {
            return new i(this.a.getConstantState());
        }
        this.b.a = getChangingConfigurations();
        return this.b;
    }

    public int getIntrinsicHeight() {
        Drawable drawable = this.a;
        if (drawable != null) {
            return drawable.getIntrinsicHeight();
        }
        return (int) this.b.b.j;
    }

    public int getIntrinsicWidth() {
        Drawable drawable = this.a;
        if (drawable != null) {
            return drawable.getIntrinsicWidth();
        }
        return (int) this.b.b.i;
    }

    public int getOpacity() {
        Drawable drawable = this.a;
        return drawable != null ? drawable.getOpacity() : -3;
    }

    public void inflate(Resources resources, XmlPullParser xmlPullParser, AttributeSet attributeSet) throws XmlPullParserException, IOException {
        Drawable drawable = this.a;
        if (drawable != null) {
            drawable.inflate(resources, xmlPullParser, attributeSet);
        } else {
            inflate(resources, xmlPullParser, attributeSet, null);
        }
    }

    public void invalidateSelf() {
        Drawable drawable = this.a;
        if (drawable != null) {
            drawable.invalidateSelf();
        } else {
            super.invalidateSelf();
        }
    }

    public boolean isAutoMirrored() {
        Drawable drawable = this.a;
        if (drawable != null) {
            return drawable.isAutoMirrored();
        }
        return this.b.e;
    }

    /* JADX WARNING: Missing block: B:13:0x0023, code skipped:
            if (r0.isStateful() != false) goto L_0x0028;
     */
    public boolean isStateful() {
        /*
        r1 = this;
        r0 = r1.a;
        if (r0 == 0) goto L_0x0009;
    L_0x0004:
        r0 = r0.isStateful();
        return r0;
    L_0x0009:
        r0 = super.isStateful();
        if (r0 != 0) goto L_0x0028;
    L_0x000f:
        r0 = r1.b;
        if (r0 == 0) goto L_0x0026;
    L_0x0013:
        r0 = r0.a();
        if (r0 != 0) goto L_0x0028;
    L_0x0019:
        r0 = r1.b;
        r0 = r0.c;
        if (r0 == 0) goto L_0x0026;
    L_0x001f:
        r0 = r0.isStateful();
        if (r0 == 0) goto L_0x0026;
    L_0x0025:
        goto L_0x0028;
    L_0x0026:
        r0 = 0;
        goto L_0x0029;
    L_0x0028:
        r0 = 1;
    L_0x0029:
        return r0;
        */
        throw new UnsupportedOperationException("Method not decompiled: b.s.a.a.f.isStateful():boolean");
    }

    public Drawable mutate() {
        Drawable drawable = this.a;
        if (drawable != null) {
            drawable.mutate();
            return this;
        }
        if (!this.e && super.mutate() == this) {
            this.b = new h(this.b);
            this.e = true;
        }
        return this;
    }

    public void onBoundsChange(Rect rect) {
        Drawable drawable = this.a;
        if (drawable != null) {
            drawable.setBounds(rect);
        }
    }

    public boolean onStateChange(int[] iArr) {
        Drawable drawable = this.a;
        if (drawable != null) {
            return drawable.setState(iArr);
        }
        boolean z = false;
        h hVar = this.b;
        ColorStateList colorStateList = hVar.c;
        boolean z2 = true;
        if (colorStateList != null) {
            Mode mode = hVar.d;
            if (mode != null) {
                this.c = b(colorStateList, mode);
                invalidateSelf();
                z = true;
            }
        }
        if (hVar.a()) {
            boolean b = hVar.b.h.b(iArr);
            hVar.k |= b;
            if (b) {
                invalidateSelf();
                return z2;
            }
        }
        z2 = z;
        return z2;
    }

    public void scheduleSelf(Runnable runnable, long j) {
        Drawable drawable = this.a;
        if (drawable != null) {
            drawable.scheduleSelf(runnable, j);
        } else {
            super.scheduleSelf(runnable, j);
        }
    }

    public void setAlpha(int i) {
        Drawable drawable = this.a;
        if (drawable != null) {
            drawable.setAlpha(i);
            return;
        }
        if (this.b.b.getRootAlpha() != i) {
            this.b.b.setRootAlpha(i);
            invalidateSelf();
        }
    }

    public void setAutoMirrored(boolean z) {
        Drawable drawable = this.a;
        if (drawable != null) {
            drawable.setAutoMirrored(z);
        } else {
            this.b.e = z;
        }
    }

    public void setColorFilter(ColorFilter colorFilter) {
        Drawable drawable = this.a;
        if (drawable != null) {
            drawable.setColorFilter(colorFilter);
            return;
        }
        this.d = colorFilter;
        invalidateSelf();
    }

    public void setTint(int i) {
        Drawable drawable = this.a;
        if (drawable != null) {
            b.i.b.f.c1(drawable, i);
        } else {
            setTintList(ColorStateList.valueOf(i));
        }
    }

    public void setTintList(ColorStateList colorStateList) {
        Drawable drawable = this.a;
        if (drawable != null) {
            b.i.b.f.d1(drawable, colorStateList);
            return;
        }
        h hVar = this.b;
        if (hVar.c != colorStateList) {
            hVar.c = colorStateList;
            this.c = b(colorStateList, hVar.d);
            invalidateSelf();
        }
    }

    public void setTintMode(Mode mode) {
        Drawable drawable = this.a;
        if (drawable != null) {
            b.i.b.f.e1(drawable, mode);
            return;
        }
        h hVar = this.b;
        if (hVar.d != mode) {
            hVar.d = mode;
            this.c = b(hVar.c, mode);
            invalidateSelf();
        }
    }

    public boolean setVisible(boolean z, boolean z2) {
        Drawable drawable = this.a;
        if (drawable != null) {
            return drawable.setVisible(z, z2);
        }
        return super.setVisible(z, z2);
    }

    public void unscheduleSelf(Runnable runnable) {
        Drawable drawable = this.a;
        if (drawable != null) {
            drawable.unscheduleSelf(runnable);
        } else {
            super.unscheduleSelf(runnable);
        }
    }

    /* JADX WARNING: Removed duplicated region for block: B:36:0x00b7  */
    /* JADX WARNING: Removed duplicated region for block: B:39:0x00c4  */
    /* JADX WARNING: Removed duplicated region for block: B:42:0x00d6  */
    /* JADX WARNING: Removed duplicated region for block: B:45:0x00e9  */
    /* JADX WARNING: Removed duplicated region for block: B:201:0x04da  */
    /* JADX WARNING: Removed duplicated region for block: B:48:0x00f7  */
    /* JADX WARNING: Removed duplicated region for block: B:36:0x00b7  */
    /* JADX WARNING: Removed duplicated region for block: B:39:0x00c4  */
    /* JADX WARNING: Removed duplicated region for block: B:42:0x00d6  */
    /* JADX WARNING: Removed duplicated region for block: B:45:0x00e9  */
    /* JADX WARNING: Removed duplicated region for block: B:48:0x00f7  */
    /* JADX WARNING: Removed duplicated region for block: B:201:0x04da  */
    public void inflate(android.content.res.Resources r28, org.xmlpull.v1.XmlPullParser r29, android.util.AttributeSet r30, android.content.res.Resources.Theme r31) throws org.xmlpull.v1.XmlPullParserException, java.io.IOException {
        /*
        r27 = this;
        r1 = r27;
        r2 = r28;
        r9 = r29;
        r10 = r30;
        r11 = r31;
        r0 = r1.a;
        if (r0 == 0) goto L_0x0012;
    L_0x000e:
        r0.inflate(r2, r9, r10, r11);
        return;
    L_0x0012:
        r12 = r1.b;
        r0 = new b.s.a.a.f$g;
        r0.m686init();
        r12.b = r0;
        r0 = b.s.a.a.a.a;
        r3 = b.i.c.b.h.e(r2, r11, r10, r0);
        r4 = r1.b;
        r5 = r4.b;
        r0 = "tintMode";
        r0 = b.i.c.b.h.c(r9, r0);
        r13 = 6;
        r14 = -1;
        if (r0 != 0) goto L_0x0031;
    L_0x002f:
        r0 = -1;
        goto L_0x0035;
    L_0x0031:
        r0 = r3.getInt(r13, r14);
    L_0x0035:
        r6 = android.graphics.PorterDuff.Mode.SRC_IN;
        r15 = 9;
        r8 = 5;
        r7 = 3;
        if (r0 == r7) goto L_0x0051;
    L_0x003d:
        if (r0 == r8) goto L_0x0053;
    L_0x003f:
        if (r0 == r15) goto L_0x004e;
    L_0x0041:
        switch(r0) {
            case 14: goto L_0x004b;
            case 15: goto L_0x0048;
            case 16: goto L_0x0045;
            default: goto L_0x0044;
        };
    L_0x0044:
        goto L_0x0053;
    L_0x0045:
        r6 = android.graphics.PorterDuff.Mode.ADD;
        goto L_0x0053;
    L_0x0048:
        r6 = android.graphics.PorterDuff.Mode.SCREEN;
        goto L_0x0053;
    L_0x004b:
        r6 = android.graphics.PorterDuff.Mode.MULTIPLY;
        goto L_0x0053;
    L_0x004e:
        r6 = android.graphics.PorterDuff.Mode.SRC_ATOP;
        goto L_0x0053;
    L_0x0051:
        r6 = android.graphics.PorterDuff.Mode.SRC_OVER;
    L_0x0053:
        r4.d = r6;
        r0 = "tint";
        r0 = b.i.c.b.h.c(r9, r0);
        r13 = 0;
        r15 = 1;
        r14 = 2;
        if (r0 == 0) goto L_0x00b4;
    L_0x0060:
        r0 = new android.util.TypedValue;
        r0.<init>();
        r3.getValue(r15, r0);
        r6 = r0.type;
        if (r6 == r14) goto L_0x0095;
    L_0x006c:
        r14 = 28;
        if (r6 < r14) goto L_0x007b;
    L_0x0070:
        r14 = 31;
        if (r6 > r14) goto L_0x007b;
    L_0x0074:
        r0 = r0.data;
        r0 = android.content.res.ColorStateList.valueOf(r0);
        goto L_0x00b5;
    L_0x007b:
        r0 = r3.getResources();
        r6 = r3.getResourceId(r15, r13);
        r6 = r0.getXml(r6);	 Catch:{ Exception -> 0x008c }
        r0 = b.i.b.f.e0(r0, r6, r11);	 Catch:{ Exception -> 0x008c }
        goto L_0x00b5;
    L_0x008c:
        r0 = move-exception;
        r6 = "CSLCompat";
        r14 = "Failed to inflate ColorStateList.";
        android.util.Log.e(r6, r14, r0);
        goto L_0x00b4;
    L_0x0095:
        r2 = new java.lang.UnsupportedOperationException;
        r3 = new java.lang.StringBuilder;
        r3.<init>();
        r4 = "Failed to resolve attribute at index ";
        r3.append(r4);
        r3.append(r15);
        r4 = ": ";
        r3.append(r4);
        r3.append(r0);
        r0 = r3.toString();
        r2.<init>(r0);
        throw r2;
    L_0x00b4:
        r0 = 0;
    L_0x00b5:
        if (r0 == 0) goto L_0x00b9;
    L_0x00b7:
        r4.c = r0;
    L_0x00b9:
        r0 = r4.e;
        r6 = "autoMirrored";
        r6 = b.i.c.b.h.c(r9, r6);
        if (r6 != 0) goto L_0x00c4;
    L_0x00c3:
        goto L_0x00c8;
    L_0x00c4:
        r0 = r3.getBoolean(r8, r0);
    L_0x00c8:
        r4.e = r0;
        r0 = r5.k;
        r4 = "viewportWidth";
        r4 = b.i.c.b.h.c(r9, r4);
        r14 = 7;
        if (r4 != 0) goto L_0x00d6;
    L_0x00d5:
        goto L_0x00da;
    L_0x00d6:
        r0 = r3.getFloat(r14, r0);
    L_0x00da:
        r5.k = r0;
        r0 = r5.l;
        r4 = "viewportHeight";
        r4 = b.i.c.b.h.c(r9, r4);
        r6 = 8;
        if (r4 != 0) goto L_0x00e9;
    L_0x00e8:
        goto L_0x00ed;
    L_0x00e9:
        r0 = r3.getFloat(r6, r0);
    L_0x00ed:
        r5.l = r0;
        r4 = r5.k;
        r19 = 0;
        r4 = (r4 > r19 ? 1 : (r4 == r19 ? 0 : -1));
        if (r4 <= 0) goto L_0x04da;
    L_0x00f7:
        r0 = (r0 > r19 ? 1 : (r0 == r19 ? 0 : -1));
        if (r0 <= 0) goto L_0x04be;
    L_0x00fb:
        r0 = r5.i;
        r0 = r3.getDimension(r7, r0);
        r5.i = r0;
        r0 = r5.j;
        r4 = 2;
        r0 = r3.getDimension(r4, r0);
        r5.j = r0;
        r4 = r5.i;
        r4 = (r4 > r19 ? 1 : (r4 == r19 ? 0 : -1));
        if (r4 <= 0) goto L_0x04a2;
    L_0x0112:
        r0 = (r0 > r19 ? 1 : (r0 == r19 ? 0 : -1));
        if (r0 <= 0) goto L_0x0486;
    L_0x0116:
        r0 = r5.getAlpha();
        r4 = "alpha";
        r4 = b.i.c.b.h.c(r9, r4);
        r14 = 4;
        if (r4 != 0) goto L_0x0124;
    L_0x0123:
        goto L_0x0128;
    L_0x0124:
        r0 = r3.getFloat(r14, r0);
    L_0x0128:
        r5.setAlpha(r0);
        r0 = r3.getString(r13);
        if (r0 == 0) goto L_0x0138;
    L_0x0131:
        r5.n = r0;
        r4 = r5.p;
        r4.put(r0, r5);
    L_0x0138:
        r3.recycle();
        r0 = r27.getChangingConfigurations();
        r12.a = r0;
        r12.k = r15;
        r0 = r1.b;
        r5 = r0.b;
        r4 = new java.util.ArrayDeque;
        r4.<init>();
        r3 = r5.h;
        r4.push(r3);
        r3 = r29.getEventType();
        r20 = r29.getDepth();
        r14 = r20 + 1;
        r20 = 1;
    L_0x015d:
        if (r3 == r15) goto L_0x046d;
    L_0x015f:
        r6 = r29.getDepth();
        if (r6 >= r14) goto L_0x0167;
    L_0x0165:
        if (r3 == r7) goto L_0x046d;
    L_0x0167:
        r6 = "group";
        r7 = 2;
        if (r3 != r7) goto L_0x043e;
    L_0x016c:
        r3 = r29.getName();
        r7 = r4.peek();
        r7 = (b.s.a.a.f.d) r7;
        r8 = "path";
        r8 = r8.equals(r3);
        r15 = "fillType";
        r13 = "pathData";
        if (r8 == 0) goto L_0x0314;
    L_0x0182:
        r8 = new b.s.a.a.f$c;
        r8.m7875init();
        r3 = b.s.a.a.a.c;
        r6 = b.i.c.b.h.e(r2, r11, r10, r3);
        r3 = 0;
        r8.e = r3;
        r13 = b.i.c.b.h.c(r9, r13);
        if (r13 != 0) goto L_0x01a7;
    L_0x0196:
        r24 = r4;
        r25 = r5;
        r1 = r6;
        r13 = r8;
        r18 = r14;
        r17 = -1;
        r21 = 8;
        r22 = 9;
        r14 = r7;
        goto L_0x02e6;
    L_0x01a7:
        r13 = 0;
        r3 = r6.getString(r13);
        if (r3 == 0) goto L_0x01b0;
    L_0x01ae:
        r8.b = r3;
    L_0x01b0:
        r3 = 2;
        r13 = r6.getString(r3);
        if (r13 == 0) goto L_0x01bd;
    L_0x01b7:
        r3 = b.i.b.f.g0(r13);
        r8.a = r3;
    L_0x01bd:
        r13 = 1;
        r20 = 0;
        r23 = "fillColor";
        r18 = 0;
        r3 = r6;
        r24 = r4;
        r4 = r29;
        r25 = r5;
        r5 = r31;
        r26 = r6;
        r6 = r23;
        r18 = r14;
        r1 = 3;
        r14 = r7;
        r7 = r13;
        r13 = r8;
        r1 = 5;
        r8 = r20;
        r3 = b.i.c.b.h.a(r3, r4, r5, r6, r7, r8);
        r13.h = r3;
        r3 = 12;
        r4 = r13.j;
        r5 = "fillAlpha";
        r5 = b.i.c.b.h.c(r9, r5);
        if (r5 != 0) goto L_0x01ef;
    L_0x01ec:
        r8 = r26;
        goto L_0x01f5;
    L_0x01ef:
        r8 = r26;
        r4 = r8.getFloat(r3, r4);
    L_0x01f5:
        r13.j = r4;
        r3 = "strokeLineCap";
        r3 = b.i.c.b.h.c(r9, r3);
        if (r3 != 0) goto L_0x0203;
    L_0x01ff:
        r3 = -1;
        r7 = 8;
        goto L_0x020b;
    L_0x0203:
        r3 = -1;
        r7 = 8;
        r4 = r8.getInt(r7, r3);
        r3 = r4;
    L_0x020b:
        r4 = r13.n;
        if (r3 == 0) goto L_0x021c;
    L_0x020f:
        r5 = 1;
        if (r3 == r5) goto L_0x0219;
    L_0x0212:
        r5 = 2;
        if (r3 == r5) goto L_0x0216;
    L_0x0215:
        goto L_0x021e;
    L_0x0216:
        r4 = android.graphics.Paint.Cap.SQUARE;
        goto L_0x021e;
    L_0x0219:
        r4 = android.graphics.Paint.Cap.ROUND;
        goto L_0x021e;
    L_0x021c:
        r4 = android.graphics.Paint.Cap.BUTT;
    L_0x021e:
        r13.n = r4;
        r3 = "strokeLineJoin";
        r3 = b.i.c.b.h.c(r9, r3);
        if (r3 != 0) goto L_0x022d;
    L_0x0228:
        r3 = -1;
        r5 = -1;
        r6 = 9;
        goto L_0x0234;
    L_0x022d:
        r5 = -1;
        r6 = 9;
        r3 = r8.getInt(r6, r5);
    L_0x0234:
        r4 = r13.o;
        if (r3 == 0) goto L_0x0245;
    L_0x0238:
        r5 = 1;
        if (r3 == r5) goto L_0x0242;
    L_0x023b:
        r5 = 2;
        if (r3 == r5) goto L_0x023f;
    L_0x023e:
        goto L_0x0247;
    L_0x023f:
        r4 = android.graphics.Paint.Join.BEVEL;
        goto L_0x0247;
    L_0x0242:
        r4 = android.graphics.Paint.Join.ROUND;
        goto L_0x0247;
    L_0x0245:
        r4 = android.graphics.Paint.Join.MITER;
    L_0x0247:
        r13.o = r4;
        r3 = 10;
        r4 = r13.p;
        r5 = "strokeMiterLimit";
        r5 = b.i.c.b.h.c(r9, r5);
        if (r5 != 0) goto L_0x0256;
    L_0x0255:
        goto L_0x025a;
    L_0x0256:
        r4 = r8.getFloat(r3, r4);
    L_0x025a:
        r13.p = r4;
        r16 = 3;
        r20 = 0;
        r21 = "strokeColor";
        r3 = r8;
        r4 = r29;
        r17 = -1;
        r5 = r31;
        r22 = 9;
        r6 = r21;
        r21 = 8;
        r7 = r16;
        r1 = r8;
        r8 = r20;
        r3 = b.i.c.b.h.a(r3, r4, r5, r6, r7, r8);
        r13.f = r3;
        r3 = 11;
        r4 = r13.i;
        r5 = "strokeAlpha";
        r5 = b.i.c.b.h.c(r9, r5);
        if (r5 != 0) goto L_0x0287;
    L_0x0286:
        goto L_0x028b;
    L_0x0287:
        r4 = r1.getFloat(r3, r4);
    L_0x028b:
        r13.i = r4;
        r3 = r13.g;
        r4 = "strokeWidth";
        r4 = b.i.c.b.h.c(r9, r4);
        if (r4 != 0) goto L_0x0298;
    L_0x0297:
        goto L_0x029d;
    L_0x0298:
        r4 = 4;
        r3 = r1.getFloat(r4, r3);
    L_0x029d:
        r13.g = r3;
        r3 = r13.l;
        r4 = "trimPathEnd";
        r4 = b.i.c.b.h.c(r9, r4);
        if (r4 != 0) goto L_0x02aa;
    L_0x02a9:
        goto L_0x02af;
    L_0x02aa:
        r4 = 6;
        r3 = r1.getFloat(r4, r3);
    L_0x02af:
        r13.l = r3;
        r3 = r13.m;
        r4 = "trimPathOffset";
        r4 = b.i.c.b.h.c(r9, r4);
        if (r4 != 0) goto L_0x02bc;
    L_0x02bb:
        goto L_0x02c1;
    L_0x02bc:
        r4 = 7;
        r3 = r1.getFloat(r4, r3);
    L_0x02c1:
        r13.m = r3;
        r3 = r13.k;
        r4 = "trimPathStart";
        r4 = b.i.c.b.h.c(r9, r4);
        if (r4 != 0) goto L_0x02ce;
    L_0x02cd:
        goto L_0x02d3;
    L_0x02ce:
        r4 = 5;
        r3 = r1.getFloat(r4, r3);
    L_0x02d3:
        r13.k = r3;
        r3 = 13;
        r4 = r13.c;
        r5 = b.i.c.b.h.c(r9, r15);
        if (r5 != 0) goto L_0x02e0;
    L_0x02df:
        goto L_0x02e4;
    L_0x02e0:
        r4 = r1.getInt(r3, r4);
    L_0x02e4:
        r13.c = r4;
    L_0x02e6:
        r1.recycle();
        r1 = r14.b;
        r1.add(r13);
        r1 = r13.getPathName();
        if (r1 == 0) goto L_0x0300;
    L_0x02f4:
        r1 = r25;
        r3 = r1.p;
        r4 = r13.getPathName();
        r3.put(r4, r13);
        goto L_0x0302;
    L_0x0300:
        r1 = r25;
    L_0x0302:
        r3 = r0.a;
        r4 = r13.d;
        r3 = r3 | r4;
        r0.a = r3;
        r4 = r24;
        r6 = 0;
        r7 = 5;
        r8 = 1;
        r13 = 2;
        r15 = 4;
        r20 = 0;
        goto L_0x043b;
    L_0x0314:
        r24 = r4;
        r1 = r5;
        r18 = r14;
        r17 = -1;
        r21 = 8;
        r22 = 9;
        r14 = r7;
        r4 = "clip-path";
        r4 = r4.equals(r3);
        if (r4 == 0) goto L_0x0380;
    L_0x0328:
        r3 = new b.s.a.a.f$b;
        r3.m7873init();
        r4 = b.i.c.b.h.c(r9, r13);
        if (r4 != 0) goto L_0x0334;
    L_0x0333:
        goto L_0x0363;
    L_0x0334:
        r4 = b.s.a.a.a.d;
        r4 = b.i.c.b.h.e(r2, r11, r10, r4);
        r5 = 0;
        r6 = r4.getString(r5);
        if (r6 == 0) goto L_0x0343;
    L_0x0341:
        r3.b = r6;
    L_0x0343:
        r5 = 1;
        r6 = r4.getString(r5);
        if (r6 == 0) goto L_0x0350;
    L_0x034a:
        r5 = b.i.b.f.g0(r6);
        r3.a = r5;
    L_0x0350:
        r5 = b.i.c.b.h.c(r9, r15);
        if (r5 != 0) goto L_0x0358;
    L_0x0356:
        r13 = 0;
        goto L_0x035e;
    L_0x0358:
        r5 = 0;
        r6 = 2;
        r13 = r4.getInt(r6, r5);
    L_0x035e:
        r3.c = r13;
        r4.recycle();
    L_0x0363:
        r4 = r14.b;
        r4.add(r3);
        r4 = r3.getPathName();
        if (r4 == 0) goto L_0x0377;
    L_0x036e:
        r4 = r1.p;
        r5 = r3.getPathName();
        r4.put(r5, r3);
    L_0x0377:
        r4 = r0.a;
        r3 = r3.d;
        r3 = r3 | r4;
        r0.a = r3;
        goto L_0x0434;
    L_0x0380:
        r3 = r6.equals(r3);
        if (r3 == 0) goto L_0x0434;
    L_0x0386:
        r3 = new b.s.a.a.f$d;
        r3.m5141init();
        r4 = b.s.a.a.a.b;
        r4 = b.i.c.b.h.e(r2, r11, r10, r4);
        r5 = 0;
        r3.l = r5;
        r6 = r3.c;
        r7 = "rotation";
        r7 = b.i.c.b.h.c(r9, r7);
        if (r7 != 0) goto L_0x03a0;
    L_0x039e:
        r7 = 5;
        goto L_0x03a5;
    L_0x03a0:
        r7 = 5;
        r6 = r4.getFloat(r7, r6);
    L_0x03a5:
        r3.c = r6;
        r6 = r3.d;
        r8 = 1;
        r6 = r4.getFloat(r8, r6);
        r3.d = r6;
        r6 = r3.e;
        r13 = 2;
        r6 = r4.getFloat(r13, r6);
        r3.e = r6;
        r6 = r3.f;
        r15 = "scaleX";
        r15 = b.i.c.b.h.c(r9, r15);
        if (r15 != 0) goto L_0x03c4;
    L_0x03c3:
        goto L_0x03c9;
    L_0x03c4:
        r15 = 3;
        r6 = r4.getFloat(r15, r6);
    L_0x03c9:
        r3.f = r6;
        r6 = r3.g;
        r15 = "scaleY";
        r15 = b.i.c.b.h.c(r9, r15);
        if (r15 != 0) goto L_0x03d7;
    L_0x03d5:
        r15 = 4;
        goto L_0x03dc;
    L_0x03d7:
        r15 = 4;
        r6 = r4.getFloat(r15, r6);
    L_0x03dc:
        r3.g = r6;
        r6 = r3.h;
        r5 = "translateX";
        r5 = b.i.c.b.h.c(r9, r5);
        if (r5 != 0) goto L_0x03ea;
    L_0x03e8:
        r5 = 6;
        goto L_0x03ef;
    L_0x03ea:
        r5 = 6;
        r6 = r4.getFloat(r5, r6);
    L_0x03ef:
        r3.h = r6;
        r6 = r3.i;
        r5 = "translateY";
        r5 = b.i.c.b.h.c(r9, r5);
        if (r5 != 0) goto L_0x03fd;
    L_0x03fb:
        r5 = 7;
        goto L_0x0402;
    L_0x03fd:
        r5 = 7;
        r6 = r4.getFloat(r5, r6);
    L_0x0402:
        r3.i = r6;
        r6 = 0;
        r5 = r4.getString(r6);
        if (r5 == 0) goto L_0x040d;
    L_0x040b:
        r3.m = r5;
    L_0x040d:
        r3.c();
        r4.recycle();
        r4 = r14.b;
        r4.add(r3);
        r4 = r24;
        r4.push(r3);
        r5 = r3.getGroupName();
        if (r5 == 0) goto L_0x042c;
    L_0x0423:
        r5 = r1.p;
        r14 = r3.getGroupName();
        r5.put(r14, r3);
    L_0x042c:
        r5 = r0.a;
        r3 = r3.k;
        r3 = r3 | r5;
        r0.a = r3;
        goto L_0x043b;
    L_0x0434:
        r4 = r24;
        r6 = 0;
        r7 = 5;
        r8 = 1;
        r13 = 2;
        r15 = 4;
    L_0x043b:
        r5 = 3;
        r14 = 0;
        goto L_0x045c;
    L_0x043e:
        r1 = r5;
        r18 = r14;
        r5 = 3;
        r7 = 5;
        r8 = 1;
        r13 = 2;
        r14 = 0;
        r15 = 4;
        r17 = -1;
        r21 = 8;
        r22 = 9;
        if (r3 != r5) goto L_0x045c;
    L_0x044f:
        r3 = r29.getName();
        r3 = r6.equals(r3);
        if (r3 == 0) goto L_0x045c;
    L_0x0459:
        r4.pop();
    L_0x045c:
        r3 = r29.next();
        r6 = 8;
        r7 = 3;
        r8 = 5;
        r13 = 0;
        r15 = 1;
        r5 = r1;
        r14 = r18;
        r1 = r27;
        goto L_0x015d;
    L_0x046d:
        if (r20 != 0) goto L_0x047c;
    L_0x046f:
        r0 = r12.c;
        r1 = r12.d;
        r2 = r27;
        r0 = r2.b(r0, r1);
        r2.c = r0;
        return;
    L_0x047c:
        r2 = r27;
        r0 = new org.xmlpull.v1.XmlPullParserException;
        r1 = "no path defined";
        r0.<init>(r1);
        throw r0;
    L_0x0486:
        r2 = r1;
        r0 = new org.xmlpull.v1.XmlPullParserException;
        r1 = new java.lang.StringBuilder;
        r1.<init>();
        r3 = r3.getPositionDescription();
        r1.append(r3);
        r3 = "<vector> tag requires height > 0";
        r1.append(r3);
        r1 = r1.toString();
        r0.<init>(r1);
        throw r0;
    L_0x04a2:
        r2 = r1;
        r0 = new org.xmlpull.v1.XmlPullParserException;
        r1 = new java.lang.StringBuilder;
        r1.<init>();
        r3 = r3.getPositionDescription();
        r1.append(r3);
        r3 = "<vector> tag requires width > 0";
        r1.append(r3);
        r1 = r1.toString();
        r0.<init>(r1);
        throw r0;
    L_0x04be:
        r2 = r1;
        r0 = new org.xmlpull.v1.XmlPullParserException;
        r1 = new java.lang.StringBuilder;
        r1.<init>();
        r3 = r3.getPositionDescription();
        r1.append(r3);
        r3 = "<vector> tag requires viewportHeight > 0";
        r1.append(r3);
        r1 = r1.toString();
        r0.<init>(r1);
        throw r0;
    L_0x04da:
        r2 = r1;
        r0 = new org.xmlpull.v1.XmlPullParserException;
        r1 = new java.lang.StringBuilder;
        r1.<init>();
        r3 = r3.getPositionDescription();
        r1.append(r3);
        r3 = "<vector> tag requires viewportWidth > 0";
        r1.append(r3);
        r1 = r1.toString();
        r0.<init>(r1);
        throw r0;
        */
        throw new UnsupportedOperationException("Method not decompiled: b.s.a.a.f.inflate(android.content.res.Resources, org.xmlpull.v1.XmlPullParser, android.util.AttributeSet, android.content.res.Resources$Theme):void");
    }

    public f(h hVar) {
        this.f = true;
        this.g = new float[9];
        this.h = new Matrix();
        this.i = new Rect();
        this.b = hVar;
        this.c = b(hVar.c, hVar.d);
    }
}
